﻿@model ICollection<AuthenticationClientData>

@using (Html.BeginForm("ProviderConnect", "Account", new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()
    <fieldset id="socialLoginList">
        <legend class="text-center">Deinen Account verknüpfen mit</legend>
        <p class="text-center">
            @foreach (AuthenticationClientData p in Model)
            {
                <button type="submit" name="provider" class="socialMedia btn btn-link"
                        value="@p.AuthenticationClient.ProviderName"
                        title="Verknüpfe deinen Account mit  @p.DisplayName">

                    @if (p.DisplayName.ToLower() == "facebook")
                    {
                        <i class="fa fa-facebook fa-4x"></i>
                    }

                    @if (p.DisplayName.ToLower() == "twitter")
                    {
                        <i class="fa fa-twitter fa-4x"></i>
                    }

                    @if (p.DisplayName.ToLower() == "microsoft")
                    {
                        <i class="fa fa-windows fa-4x"></i>
                    }

                    @if (p.DisplayName.ToLower() == "google")
                    {
                        <i class="fa fa-google-plus fa-4x"></i>
                    }
                </button>
            }
        </p>
    </fieldset>
}
